package com.wang.springcloud;

import com.wang.myRule.myRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author: wyh
 * @Date: 2020/9/15 9:52
 */
@SpringBootApplication
@EnableDiscoveryClient
//在微服务启动的时候就去能加载我们自定义的Rule类
@RibbonClient(name="SPRINGCLOUD-PROVIDER-DEPT",configuration = myRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
